package com.ns.scs.user.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 用户租户服务关联实体
 *
 * @author lw
 */
@Data
@Accessors(chain = true)
@TableName(value = "SCSS_USER_SERVER")
public class UserServer implements Serializable {

    @Serial
    private static final Long serialVersionUID = 1L;
    /**
     * 此模块对应的表名
     */
    public static final String TABLE_NAME = "SCSS_USER_SERVER";
    /**
     * id，--主键、自增
     */
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 用户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long uid;

    /**
     * 服务id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long sid;
}
